gtk-demo: Add alternative text to a GtkPicture
authorMatthias Clasen <mclasen@redhat.com>
Thu, 22 Oct 2020 04:05:50 +0000 (00:05 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 22 Oct 2020 11:51:44 +0000 (07:51 -0400)
This lets us text GtkPicture a11y support.

demos/gtk-demo/images.c

index 43d138101ca5e39cd62e401cd0228687fd19a54d..e13302eb538092391e6cb0b687760c46b57ea750 100644 (file)
@@ -414,6 +414,7 @@ do_images (GtkWidget *do_widget)
        * will create the pixbuf and fill it in.
        */
       picture = gtk_picture_new ();
+      gtk_picture_set_alternative_text (GTK_PICTURE (picture), "A slowly loading image");
       gtk_frame_set_child (GTK_FRAME (frame), picture);
 
       start_progressive_loading (picture);